package com.avfh.netcard.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuhui
 * @since 2017-06-28
 */
@TableName("bd_card")
public class Card extends Model<Card> {

    private static final long serialVersionUID = 1L;

    @TableId("card_id")
	private Long cardId;
    /**
     * 物流网卡卡号
     */
	private String sim;
    /**
     * 1启用 2禁用
     */
	private Integer status;
	@TableField("created_at")
	private Date createdAt;
	@TableField("updated_at")
	private Date updatedAt;


	public Long getCardId() {
		return cardId;
	}

	public Card setCardId(Long cardId) {
		this.cardId = cardId;
		return this;
	}

	public String getSim() {
		return sim;
	}

	public Card setSim(String sim) {
		this.sim = sim;
		return this;
	}

	public Integer getStatus() {
		return status;
	}

	public Card setStatus(Integer status) {
		this.status = status;
		return this;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public Card setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public Card setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

	public static final String CARD_ID = "card_id";

	public static final String SIM = "sim";

	public static final String STATUS = "status";

	public static final String CREATED_AT = "created_at";

	public static final String UPDATED_AT = "updated_at";

	@Override
	protected Serializable pkVal() {
		return this.cardId;
	}

}
